package ru.gerunn.study.spring.javaxblog;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Country {

	private Capital capital;

	public Capital getCapital() {
		return capital;
	}

	public void setCapital(Capital capital) {
		this.capital = capital;
	}

	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("javaxblog.beans.country.xml");
		Country country = (Country) ac.getBean("country");
		System.out.println(country);
	}

}